const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
    transpileDependencies: true,
    //lintOnSave: false, //关闭eslint
    publicPath: process.env.NODE_ENV === 'production' ? '/datav/' : '/',
    pages: {
        index: {
            entry: 'src/pages/index/main.js',
            template: 'public/index.html',
            filename: 'index.html',
            //template 中的 title 标签需要是 <title><%= htmlWebpackPlugin.options.title %></title>
            title: '餐饮油烟综合治理服务平台',
            chunks: ['chunk-vendors', 'chunk-common', 'index'],
        },
        place: {
            //经营场所
            entry: 'src/pages/place/main.js',
            template: 'public/index.html',
            filename: 'place.html',
            //template 中的 title 标签需要是 <title><%= htmlWebpackPlugin.options.title %></title>
            title: '餐饮油烟综合治理情况',
            chunks: ['chunk-vendors', 'chunk-common', 'place'],
        },
        noplace: {
            //非经营场所
            entry: 'src/pages/noplace/main.js',
            template: 'public/index.html',
            filename: 'noplace.html',
            //template 中的 title 标签需要是 <title><%= htmlWebpackPlugin.options.title %></title>
            title: '餐饮油烟综合治理情况',
            chunks: ['chunk-vendors', 'chunk-common', 'noplace'],
        },
        monitor: {
            entry: 'src/pages/monitor/main.js',
            template: 'public/index.html',
            filename: 'monitor.html',
            title: '实时监控',
            chunks: ['chunk-vendors', 'chunk-common', 'monitor'],
        },
    },
})
